#include<vector>
#include<iostream>
using namespace std;
int main()
{
	vector<int> v;
	v.resize(10, 1);
	v.resize(5);
	for (auto e : v)
	{
		cout << e << ' ';
	}
	cout << endl;

	v.resize(25, 2);
	for (auto e : v)
	{
		cout << e << ' ';
	}
	cout << endl;

	v.resize(2);
	for (auto e : v)
	{
		cout << e << ' ';
	}
	cout << endl;

	v.resize(1,2);
	for (auto e : v)
	{
		cout << e << ' ';
	}
	cout << endl;
	return 0;
}